PATH![]() |
![]() ![]() |
Windows can be stored in flattened collections in extensible window resources of type 'wind' . You create a window from a 'wind' resource when you call the function CreateWindowFromResource . For more details on collections, see "Collection Manager" in Inside Macintosh: QuickDraw GX Environment and Utilities .
Note that due to the complexity of this format, it is possible to create 'wind' resources using Rez, but it is not possible to DeRez them. DeRez cannot currently handle multiple undefined labels as used in this type definition.
Note, too, that your application's 'wind' resources must have resource ID numbers greater than 127.
There are currently two default collection items defined for the extended window resource. One default item is a structure of type BasicWindowDescription , which defines a standard Mac OS 8.5 Window Manager window. The other default item is a Pascal title string for the window. Future versions of the Window Manager may add new default collection items to the format without the application's knowledge.
Application developers are welcome to extend 'wind' resources with new collection items as they see fit (although zero-length items aren't supported). However, developers may not define new collection items using the 'appl' collection item tag, which is reserved for use by Apple Computer, Inc. See 'wind' Resource Default Collection Item Constants for details on the tags and the IDs that are reserved for identifying default items.
The format of a compiled 'wind' resource is based upon that of a 'flac' , or flattened collection, resource. Figure 3-1 illustrates the format of this resource.
Figure 3-1 Structure of a compiled 'wind' resource
A compiled version of the 'wind' resource contains the following elements: